﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GestoreSuperProgetto.Model;

namespace GestoreSuperProgetto
{
    public partial class UserManager : Form
    {
        public UserManager()
        {
            InitializeComponent();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            Close();
        }

        public USER User
        {
            get { return userEditor.ActiveUser ; }

            set { userEditor.ActiveUser = value; }
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            userEditor.UpdateObject();
        }
    }
}
